package com.changhai.diabetes.util;


/**
 * 常量
 * @author Andy
 *
 */
public class Constants {

	public static final String COMMA = ",";

	public static final String AUTH_SKIP_NS = "skip_namespace";

	public static final String LOGIN_URL = "login_url";

	public static final String PERMISSION_URL = "permission_url";

	public static final String SESSION_USER_KEY = "_USER_";
	
	public static final String SESSION_PATIENT_IDS = "patient_ids";

	public static final String SESSION_PATIENT = "patients";
	
	public static final String DS_CHANGHAI = "dataSource_changhai";

	public static final int BASIC_TABLE_FLAG = 1;
	
	public static final String OPER_ADD = "add";
	public static final String OPER_EDIT = "edit";
	public static final String OPER_DEL = "del";
	public static final String OPER_SEARCH = "search";
	public static final String OPER_SELECT = "select";
	public static final String OPER_ADD_SEARCH = "add_search";
	public static final String DEBUG_PREFIX = "#==debuglog==# ";

	public static final int SEARCH_TYPE_SINGLE = 0;
	public static final int SEARCH_TYPE_MULTIPLE = 1;
	public static final String SEARCH_RULE = "rules";
	public static final String SEARCH_FIELD = "field";
	public static final String SEARCH_OP = "op";
	public static final String SEARCH_OP_VALUE_GQ = "ge";// great and equal
	public static final String SEARCH_DATA = "data";
	public static final String SEARCH_GROUPOP = "groupOp";
	public static final String SEARCH_GROUPOP_AND = "AND";
	public static final String SEARCH_GROUPOP_OR = "or";
	public static final String SEARCH_FROM = "from";
	public static final String SEARCH_TO = "to";
	public static final String SEARCH_FIELD_PARAM_TREND = "t_field_param";
	public static final String SEARCH__FIELD_PARAM_CATEGORY = "c_field_param";
	public static final String SEARCH__FIELD_PARAM_WEBSITE = "w_field_param";
	public static final String SEARCH_FIELD_ID_TREND = "t_field_id";

	public static final String SEARCH_FIELD_ID_INFOUSER = "t_field_id";

	public static final String SEARCH_FIELD_ID_CATEGORY = "c_field_id";
	public static final String SEARCH_FIELD_ID_WEBSITE = "w_field_id";

	public static final String SEARCH__FIELD_ENTRY_TYPE = "entryType";

	public static final String SEARCH_FIELD_DATE_REGEX = "date|time";
	public static final String SEARCH_FIELD_DATE_PREFIX = "start_";
	public static final String SEARCH_FIELD_DATE_SUFFIX = "end_";

	public static final int OPER_TYPE_DEFAULT = 0;
	public static final int OPER_TYPE_SAVEANDNEXT = 1;// save&next;
	public static final int OPER_TYPE_SAVE = 2;// just save

	public static final int QUERY_TYPE_ALLKEYWORDS = 0; // 0:All&Keywords;
	public static final int QUERY_TYPE_TREND = 1;// 1:TREND;
	public static final int QUERY_TYPE_CATEGORY = 2;// 2:CATEGORY
	public static final int QUERY_TYPE_WEBSITE = 3;// 3:WEBSITE

	public static final String DATE_PATTEN_YYYYMMDD = "yyyy-MM-dd";	

	public static final int ADMIN_OPERT_TREND = 0;
	public static final int ADMIN_OPERT_CATEGORY = 1;
	public static final int ADMIN_OPERT_SITE = 2;
	public static final int ADMIN_OPERT_USER = 3;
	public static final int ADMIN_OPERT_Role = 4;

	public static final String SORT_UP = "up";
	public static final String SORT_DOWN = "down";

	public static final String SUPER_ADMIN = "super"; // 超级管理员

 

}
